-
Notifications
You must be signed in to change notification settings - Fork 563
Rails 5 #502
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rails 5 #502
Conversation
The size (2147483647) given to the type 'nvarchar' exceeds the maximum allowed for any data type (8000).
* Dont worry about view info cache. Since product of columns is cached. * May have to not care about a few schema tests later down the road.
| SQLSERVER_STATEMENT_PREFIX = 'EXEC sp_executesql ' | ||
| SQLSERVER_PARAM_MATCHER = /@\d+ =/ | ||
| SQLSERVER_STATEMENT_PREFIX = 'EXEC sp_executesql '.freeze | ||
| SQLSERVER_PARAM_MATCHER = /@\d+ = (.*)/.freeze |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Regex literals are always frozen in Ruby.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks... keep it coming :)
|
#RandomUnsolicedCodeReview |
| def view_exists?(table_name) | ||
| identifier = SQLServer::Utils.extract_identifiers(table_name) | ||
| views.include? identifier.object | ||
| end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does the identifier need to be stored in memory?
From
identifier = SQLServer::Utils.extract_identifiers(table_name)
views.include? identifier.object
to
views.include? SQLServer::Utils.extract_identifiers(table_name).object
For a one liner that doesn't stamp out memory. Since it is only used once.
|
Yay merge! |
NOTICEPlease keep in mind this is only the core adapter tests passing. I'll be making individual PRs as work progresses for other things. There is still much work to do. |
This branch will be squashed and merged when complete. For now, we just got the adapter tests passing. I have yet to run the full ActiveRecord suite to see what else needs to be done but I suspect it will take a few more weeks till we are ready for a pre-release and testing.